<template>
  <div class="app-container home">
        <el-card class="col-item" style="height: 300px">
          <div slot="header" class="clearfix">
            <span>我的工作台</span>
          </div>
          <div class="body">

            <el-row :gutter="20">
              <el-col :span="6">
                <el-statistic title="店铺数量">
                  <template slot="formatter">
                    {{indexData.shopc}}
                  </template>
                </el-statistic>
              </el-col>
              <el-col :span="6">
                <el-statistic title="员工数量">
                  <template slot="formatter">
                    {{indexData.userc}}
                  </template>
                </el-statistic>
              </el-col>
              <el-col :span="6">
                <el-statistic title="绑定供货商">
                  <template slot="formatter">
                    {{indexData.supplyc}}
                  </template>
                </el-statistic>
              </el-col>
            </el-row>
            <el-row :gutter="20" style="margin-top: 20px">
              <el-col :span="6">
                <el-statistic title="昨日采购单">
                  <template slot="formatter">
                    {{indexData.od}}
                  </template>
                </el-statistic>
              </el-col>
              <el-col :span="6" >
                <el-statistic title="总计采购单">
                  <template slot="formatter">
                    {{indexData.oa}}
                  </template>
                </el-statistic>
              </el-col>
              <el-col :span="6">
                <el-statistic title="昨日出库单">
                  <template slot="formatter">
                    {{indexData.obd}}
                  </template>
                </el-statistic>
              </el-col>
              <el-col :span="6">
                <el-statistic title="总计出库单">
                  <template slot="formatter">
                    {{indexData.oba}}
                  </template>
                </el-statistic>
              </el-col>
            </el-row>


          </div>
        </el-card>

    <el-divider />
    <el-row :gutter="20">
      <el-col :sm="24" :lg="12" style="padding-left: 20px">
        <h2>维森恩科技</h2>

      </el-col>


    </el-row>
    <el-row :gutter="20">
      <el-col :xs="24" :sm="24" :md="12" :lg="8">
        <el-card class="update-log">
          <div slot="header" class="clearfix">
            <span>联系信息</span>
          </div>
          <div class="body">
            <p>
              <i class="el-icon-s-promotion"></i> 官网：<el-link
                href="http://www.ruoyi.vip"
                target="_blank"
                >http://www.ruoyi.vip</el-link
              >
            </p>
            <p>
              <i class="el-icon-chat-dot-round"></i> 微信：<a
                href="javascript:;"
                >13366669999</a
              >
            </p>
            <p>
              <i class="el-icon-money"></i> 手机号：<a
                href="javascript:;"
                class="手机号"
                >13366669999</a
              >
            </p>
          </div>
        </el-card>
      </el-col>
      <el-col :sm="24" :lg="12" style="padding-left: 50px">
        <el-card>
          <div slot="header" class="clearfix">
            <span>技术选型</span>
          </div>
          <div class="body">
              <el-col :span="6">
                <h4>后端技术</h4>
                <ul>
                  <li>SpringBoot</li>
                  <li>Spring Security</li>
                  <li>JWT</li>
                  <li>MyBatis</li>
                  <li>Druid</li>
                  <li>Fastjson</li>
                  <li>...</li>
                </ul>
              </el-col>
              <el-col :span="6">
                <h4>前端技术</h4>
                <ul>
                  <li>Vue</li>
                  <li>Vuex</li>
                  <li>Element-ui</li>
                  <li>Axios</li>
                  <li>Sass</li>
                  <li>Quill</li>
                  <li>...</li>
                </ul>
              </el-col>
          </div>
        </el-card>

      </el-col>


    </el-row>
  </div>
</template>

<script>
import {getIndexData} from "@/api/system/company"
export default {
  name: "Index",
  data() {
    return {
      indexData:{},
      // 版本号
      version: "3.9.0"
    }
  },
  created() {
    this.getIndexData();
  },
  methods: {
    getIndexData(){
      getIndexData().then(res => {
        console.log(res)
        this.indexData = res.data
      })
    },
    goTarget(href) {
      window.open(href, "_blank")
    }
  }
}
</script>

<style scoped lang="scss">
.home {
  blockquote {
    padding: 10px 20px;
    margin: 0 0 20px;
    font-size: 17.5px;
    border-left: 5px solid #eee;
  }
  hr {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #eee;
  }
  .col-item {
    margin-bottom: 20px;
  }

  ul {
    padding: 0;
    margin: 0;
  }

  font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: #676a6c;
  overflow-x: hidden;

  ul {
    list-style-type: none;
  }

  h4 {
    margin-top: 0px;
  }

  h2 {
    margin-top: 10px;
    font-size: 26px;
    font-weight: 100;
  }

  p {
    margin-top: 10px;

    b {
      font-weight: 700;
    }
  }

  .update-log {
    ol {
      display: block;
      list-style-type: decimal;
      margin-block-start: 1em;
      margin-block-end: 1em;
      margin-inline-start: 0;
      margin-inline-end: 0;
      padding-inline-start: 40px;
    }
  }
}
</style>

